/** Created by CUIJA on 05-19-2017.*/
function verifyService($http) {
  var urlBase = "/api/verify";
  var svc = this;

  function getAllVerify(state, block){
      return $http.get("/outer"+urlBase+"/"+state+"/"+block+"/all");
  }

  function modifyVerifyState(id, state, msg){
      return $http.put(urlBase+"/state/update", {"id":id,"state":state, "msg":msg});
  }
  
  function modifyVerifyBlock(id, block){
      return $http.put(urlBase+"/block/update", {"id":id,"block":block});
  }

  return {
    getAllVerify: getAllVerify,
    modifyVerifyState : modifyVerifyState,
    modifyVerifyBlock : modifyVerifyBlock
  }
}

module.exports = verifyService;